{template header}
<div class="box">
    <style>
		.index_content {width: 970px;overflow: hidden;_zoom: 1; margin-bottom:15px;}
		.question_layer {border: #F96 1px solid;width: 706px;padding: 1px;background: white;float: left;}
		.side_content {float: right;}
		.side_content {border: #CCC 1px solid;background: white;padding: 1px;width: 246px;height:155px;}
		.question_layer .question_content {background: #F5FAEB;padding: 25px 18px 23px 24px;width:664px;overflow: hidden;zoom: 1;}
		.question_layer h3 {width: 100%;background: url(../images/ask_index_icons_03.png) no-repeat 0 -103px;height: 18px;line-height: 18px;margin-bottom: 11px;text-indent: 104px;color: #F60;font-size: 12px;font-weight: normal;border-bottom: none;}
		input, button, select, textarea {outline: none;font-size: 12px;}
		.question_layer {
			border:#ff9966 1px solid;
			width:706px;
			padding:1px;
			background:#fff;
			float:left;
		}
		.question_layer .question_content {
			background:#F5FAEB;
			padding:25px 18px 23px 24px;
			width:664px;
			overflow:hidden;
			zoom:1;
		}

		*html .question_content { height: 106px;} /* ie6 fixed */
        *+html .question_content { height: 106px;} /* ie7 fixed, 注意顺序 */

		.question_layer h3 {
			width:100%;
			background:url(../images/ask_index_icons_03.png) no-repeat 0 -103px;
			height:18px;
			line-height:18px;
			margin-bottom:11px;
			text-indent:104px;
			color:#ff6600;
			font-size:12px;
			font-weight:normal;
			border-bottom:none;
		}
		.question_layer h3 strong {
			display:inline-block;
			overflow:hidden;
			text-indent:-9999px;
		}
		.question_boxer {
			width:662px;
		}
		.question_boxer:after {
			clear:both;
			content:".";
			display:block;
			font-size:0;
			height:0;
			line-height:0;
			visibility:hidden;
		}
		.question_text {
			width:398px;
			height:27px;
			padding:9px 0 0 0;
			background:#fff url(../images/textarea_shadow_bg02.gif) repeat-x 0 0;
			border:#959595 1px solid;
			border-bottom:#b7b7b7 1px solid;
			border-right:#e7e7e7 1px solid;
			float:left;
		}
		.input_txt {
			border:none;
			background:#fff url(../images/ask_index_icons_03.png) no-repeat 8px -217px;
			width:368px;
			height:20px;
			+height:19px;
			_height:18px;
			font-size:14px;
			line-height:20px;
			padding:0 0 7px 30px;
		}
		.input_txt.notxt {
			color:#999;
		}
		.question_boxer .input_btn {
			background:url(../images/ask_index_icons_03.png) no-repeat;
			border:none;
			cursor:pointer;
			height:38px;
			float:left;
			overflow:hidden;
			text-indent:-9999px;
		}
		.question_boxer .answer_btn {
			width:124px;
			background-position:0 -130px;
			margin-right:16px;
		}
		.question_boxer .submit_btn {
			width:117px;
			background-position:0 -169px;
		}
		.question_layer .question_content .hot_tags {margin-top: 12px;height: 16px;line-height: 16px;color: #666;}
		.question_layer .question_content .hot_tags a:hover {color: #F60;}
		.question_layer .question_content .hot_tags {	margin-top:12px;	height:16px;	line-height:16px;	color:#666;}
		.question_layer .question_content .hot_tags a {	color:#666;	margin:0 10px 0 5px;}
		.question_layer .question_content .hot_tags a:hover {color:#f60;}
	</style>
	<div class="index_content">
		<div class="question_layer">
			<div class="question_content">
				<h3>/&nbsp;快速专业的房产知识平台</h3>
				<form action="{url question/search/3}" method="post" id="frmAsk">
				<div class="question_boxer">
					<div class="question_text">
					<input type="text" name="word" maxlength="100" class="input_txt notxt" id="formTxt" value="{if isset($word)}$word{/if}" maxlength="50" nullvalue="在这儿输入您的问题">
					</div>
					<div class="tips_cont" style="display:none;">还可以输入<strong id="tips_num">50</strong>字</div>
					<input type="submit" class="input_btn answer_btn" value="搜索问题">
					<input type="button" class="input_btn submit_btn" value="我要提问" id="btnAsk" onclick="ask_submit();">
					<input type="hidden" id="hidAskURL" value="http://my.anjuke.com/ask/new/">
				</div>
				</form>
				<div class="hot_tags">
		热门搜索：
		<!--{loop $wordslist $hotword}-->
			<a {if $hotword['qid']}href="{url question/view/$hotword['qid']}" {else}href="{url question/search/3/{$hotword['w']}}"{/if}>{$hotword['w']}</a>
		<!--{/loop}-->
		</div>        </div>
		</div>

		<div class="side_content nologin_content" style="border:none;width:250px;">
			<style>
				.login_boxer {
					/* background: url("../images/indextop_content.png") no-repeat scroll -508px -170px transparent;*/
					border:1px solid #FF9966;
					height: 155px;
					width: 248px;
				}

				.nologin {
					height: 155px;
					position: relative;
				}
				.nologin #divWaitLogin {
					background: url("http://pages.fangkewangstatic.com/img/indeximg/loading2.gif") no-repeat scroll center center #EEEEEE;
					cursor: wait;
					height: 155px;
					left: 0;
					opacity: 0.5;
					position: absolute;
					top: 0;
					width: 221px;
					z-index: 100;
				}
				.nologin .login_type {
					border-bottom: 1px solid #FFCC99;
					overflow: hidden;
					width: 100%;
				}
				.nologin .login_type span.user_access, .nologin .login_type a.broker_access {
					/*background: url("../images/index_login_bg.png") no-repeat scroll 0 0 transparent;*/
					display: block;
					float: left;
					font-size: 14px;
					font-weight: bold;
					height: 29px;
					line-height: 29px;
				}
				.nologin .login_type span.user_access {
					background-position: 0 -65px;
					text-align: center;
					width: 86px;
				}
				.nologin .login_type a.broker_access {
					background-position: 0 0;
					color: #333333;
					text-indent: 33px;
					width: 135px;
				}
				.nologin .login_type a.broker_access:hover {
					background-position: 0 -31px;
					color: #333333;
					text-decoration: none;
				}
				.nologin .loginform {
					padding: 11px 0 0 12px;
					width: 207px;
				}
				.nologin .loginform div {
					overflow: hidden;
					width: 100%;
				}
				.nologin .loginform .field01 {
					height: 22px;
					margin-bottom: 3px;
				}
				.nologin .loginform .field01 label {
					float: left;
					line-height: 20px;
					width: 44px;
				}
				.nologin .loginform .field01 input.input_text, .nologin .loginform .field01 input.input_text_2 {
					border: 1px solid #CCCCCC;
					color: #000000;
					font-size: 12px;
					height: 18px;
					line-height: 18px;
					vertical-align: middle;
					width: 100px;
				}
				.nologin .loginform .field01 input.input_text_2 {
					color: #999999;
				}
				.nologin .loginform .field01 span.forget {
					float: left;
					line-height: 20px;
					margin-left: 4px;
				}
				.nologin .loginform .field02 {
					height: 20px;
					margin: 0;
					overflow: hidden;
					padding: 4px 0 4px 44px;
					width: 165px;
				}
				.nologin .loginform .field02 input.remember {
					margin-left: 0;
					padding-left: 0;
					vertical-align: middle;
				}
				.nologin .loginform .field02 label {
					padding: 0 4px;
				}
				.nologin .loginform .field02 label, .nologin .loginform .field02 span.gray {
					vertical-align: middle;
				}
				.nologin .loginform .field03 {
					height: 28px;
					margin: 0;
					overflow: hidden;
					padding-left: 44px;
					width: 163px;
				}
				.nologin .loginform .field03 .input_sbubmit {
					background: url("../images/index_input_bg_05.png") no-repeat scroll -133px -39px transparent;
					border: 0 none;
					color: #8D1F04;
					cursor: pointer;
					font-size: 14px;
					font-weight: bold;
					height: 28px;
					line-height: 28px;
					margin: 0 8px 0 0;
					padding-top: 0;
					vertical-align: middle;
					width: 80px;
				}
				.nologin .loginform .field03 .input_sbubmit:hover {
					background-position: -133px -80px;
				}
				.user_login .top_link {
					background: url("../images/index_login_bg.png") no-repeat scroll 0 -98px transparent;
					color: #CCCCCC;
					height: 33px;
					line-height: 33px;
					text-align: center;
					width: 100%;
				}
				.user_login dl {
					background: url("../images/index_input_bg_05.png") no-repeat scroll 13px -127px transparent;
					height: 33px;
					line-height: 16px;
					margin: 13px 0 0 1px;
					padding: 0 0 14px 59px;
					position: relative;
					width: 160px;
				}
				.user_login dl.user_dl01 {
					border-bottom: 1px solid #EAE4D6;
				}
				.user_login dl.user_dl02 {
					background-position: 13px -190px;
				}
				.user_login dl.user_dl03 {
					background-position: 13px -256px;
				}
				.user_login dl.user_dl03 em {
					color: #FF6600;
					font-style: normal;
				}
				.user_login dl dd {
					color: #0041D9;
				}
				.user_login dl dd.image_links {
					left: 13px;
					position: absolute;
					top: 0;
				}
				.user_login dl dd.image_links a {
					display: block;
					font-size: 0;
					height: 33px;
					line-height: 0;
					overflow: hidden;
					text-indent: -9999px;
					width: 33px;
				}
			</style>
			<!--{if !$user['uid']}-->
			<div id="login_boxer" class="login_boxer">
				<div class="nologin">
					<div class="login_type">
						<span class="user_access">用户登录</span>
					</div>
					<div class="loginform">
					<!-- login.php -->
					<form method="post" action="?user/login.html" name="loginForm" id="loginForm_apf_id_8">
					<div class="field01"><label>用户名</label> <input type="text" onfocus="javascript:if(this.value=='手机或EMAIL')this.value='';this.className='input_text';" name="username" class="input_text_2" value="手机或EMAIL" tabindex="1">
					</div>
					<div class="field01"><label>密&nbsp;&nbsp;码</label> <input type="password" name="password" class="input_text" tabindex="2"> <a class="forget" href="?user/getpass.html">忘记密码</a></div>
					<div class="field02"><input type="checkbox" tabindex="4" class="remember" id="remember" name="remember"><label for="remember">自动登录</label><span class="gray">(仅限普通用户)</span></div>
					<div class="field03"><input type="submit" value="登 录" class="input_sbubmit" name="submit" tabindex="3"> <a href="{url user/register}">注册新用户</a></div>
					<input type="hidden" value="1" name="loginpost"> <input type="hidden" name="formhash"> <input type="hidden" name="systemtime" id="systemtime">
					<input type="hidden" value="fangkewang" name="sid"> <input type="hidden" value="aHR0cDovL2JlaWppbmcuYW5qdWtlLmNvbQ==" id="history" name="url"></form>
					</div>
					<div style="display: none;" id="divWaitLogin"></div>
				</div>
			</div>
			<div id="divLoginContainer" style="display:none;">
				<div class="boxthree1" style="height:auto;border:none;width:auto; padding:30px 72px 10px 70px;">
					<a style="text-decoration: none;" target="_blank" href="{url user/register}"><span class="login_btn">免费注册</span><br><span>免费注册快乐问答</span></a><div style="clear:both;height:10px;"></div>
					<a target="_blank" href="{url user/login}" style="text-decoration: none; margin-right: 0px;"><span class="login_btn">登 录</span><br><span>开启知识之旅</span></a>
				</div>
			</div>
			<!--{else}-->
			<div class="ps_box1 login_boxer">
                <div class="person_name"><a href="?user/default.html">{$user['username']} </a></div>
                <div class="user_info">
                    <div class="person_pic"><img id="headPic" src="{$user['avatar']}" alt="{$user['username']}" title="{$user['username']}"></div>
                    <div class="user_subinfo">
                        <span>{$user['grouptitle']}</span>
                    </div>
                </div>
                <div class="user_info">
                    {if 2==$user['grouptype']}
                    <div>
                        {eval $credit1percent=round(($user['credit1']/$user['creditshigher'])*100);}
                        {eval $credit1percentleft = 100-$credit1percent-1}
                        升级进度<img src="css/default/jindutiao_yellow.gif" alt="" style="vertical-align: middle;" width="{$credit1percent}" height="7"><img src="css/default/jindutiao_white-02.gif" alt="" style="vertical-align: middle;" width="{$credit1percentleft}" height="7"><img src="css/default/jindutiao_end.gif" alt="" style="vertical-align: middle;" width="1" height="7"><span class="font_gray">({$user['credit1']}/{$user['creditshigher']})</span>
                    </div>
                    {/if}
                </div>
            </div>
			<div id="divLoginContainer" style="display:none;">
				<div class="boxthree1" style="height:auto;border:none;width:auto; padding:30px 72px 10px 70px;">
					<a style="text-decoration: none;" target="_blank" href="../zufang.php"><span class="login_btn">租房</span><br><span>查看租房信息</span></a><div style="clear:both;height:10px;"></div>
					<a target="_blank" href="../ershoufang.php" style="text-decoration: none; margin-right: 0px;"><span class="login_btn">二手房</span><br><span>查看二手房信息</span></a>
				</div>
			</div>
			<!--{/if}-->


		</div>
	</div>

	<!--内容左一栏 begin-->
    <div class="boxone">
        <div class="boxone1">
            <div class="boxtop">最佳回答采纳率：</div>
            <div class="boxone1down1">
            <!--{eval $statistics=$this->fromcache('statistics');}-->
                <h1>{$statistics['bestadopt']}%</h1>
                <p class="boxone1down2">已解决问题数：{$statistics['solves']}</p>
                <p class="boxone1down3">待解决问题数：{$statistics['nosolves']}</p>
            </div>
        </div>
        <div class="blank10"></div>
        <div class="boxone1">
            <div class="boxtop">问答分类</div>
            <div class="boxone1down4 ">
            	 <!--{eval $categorylist=$this->fromcache('categorylist');}-->
                <!--{loop $categorylist  $category1}-->
                <h2><a href="{url category/view/$category1['id']}">{$category1['name']}</a><span>({$category1['questions']})</span></h2>
                <ul>
                    <!--{loop $category1['sublist'] $index $category2}-->
                    <li><a href="{url category/view/$category2['id']}">{$category2['name']}<span>({$category2['questions']})</span></a></li>
                    <!--{/loop}-->
                </ul>
                <!--{/loop}-->
            </div>
        </div>
        <div class="blank10"></div>
        <div class="boxone3">
            <div class="boxone3anxian1">
                <a href="mailto:{$setting['admin_email']}" target="_blank" ><strong>意见反馈</strong></a>
            </div>
            <div class="boxone3anxian2">
                <a href="{url index/help}#如何提问" target="_blank" ><strong>如何提问</strong></a>
            </div>
            <div class="boxone3anxian3">
                <a href="{url index/help}#如何回答" target="_blank" ><strong>如何回答</strong></a>
            </div>
        </div>
    </div>

    <!--内容左二栏 begin-->
    <div class="boxtwo">
        <div class="boxtwo1">
            <div class="boxtop">
                <span><a href="{url category/recommend/1}" target="_blank">更多&gt;&gt;</a></span>精彩推荐
            </div>
            <div class="boxtwo1down">
                <div class="boxtwo1downright blue">
                    <ul>
                    	<!--{eval $recommendlist=$this->fromcache('recommendlist');}-->
                        <!--{loop $recommendlist $index $recommend}-->
                        <li id="recommend{$index}">
                            <span class="font_gray3">[<a href="{url category/view/$recommend['cid']}" target="_blank">{$recommend['category_name']}</a>]</span>
                            <a href="{$recommend['url']}" title="{$recommend['title']}" target="_blank">{eval echo cutstr($recommend['title'],22);}</a>
                        </li>
                        <!--{/loop}-->
                    </ul>
                </div>
                <div style class="boxtwo1downleft">
                <!--{loop $recommendlist $index $recommend}-->
					<!--{if 0==$index}-->
                    	<a  id="recommend{$index}img" href="{url question/view/$recommend['qid']}" target="_blank"><img height="106" width="160" src="$recommend['image']"></a>
                    <!--{else}-->
                    	<a 	id="recommend{$index}img" href="{url question/view/$recommend['qid']}" target="_blank" style="display:none"><img height="106" width="160" src="$recommend['image']"></a>
                    <!--{/if}-->
				<!--{/loop}-->
                </div>
            </div>
        </div>

        <div class="blank10"></div>
        <!--广告位1-->
        <!--{if (isset($adlist['index']['middle1']) && trim($adlist['index']['middle1']))}-->
        {$adlist['index']['middle1']}
        <div class="blank10"></div>
        <!--{/if}-->

        <div class="boxtwo1">
            <div class="boxtop blue"><span><a href="{url category/list/1}">更多&gt;&gt;</a></span>网友正在问</div>
            <div class="boxtwo3down blue">
                <ul>
                	<!--{eval $nosolvelist=$this->fromcache('nosolvelist');}-->
                    <!--{loop $nosolvelist $index $question}-->
		            <!--{eval ++$index;}-->
                    <li><span>[<a href="{url category/view/$question['cid']}">{$question['category_name']}</a>]</span>·<a href="{$question['url']}" title="{$question['title']}" target="_blank">{eval echo cutstr($question['title'],49);}</a></li>
                    <!--{if 0==$index%5}-->
                    <li class="boxtwo3downline"></li>
                    <!--{/if}-->
                    <!--{/loop}-->
                </ul>
            </div>
        </div>
        <div class="blank10"></div>

        <!--广告位2-->
        <!--{if (isset($adlist['index']['middle2']) && trim($adlist['index']['middle2']))}-->
        {$adlist['index']['middle2']}
        <div class="blank10"></div>
        <!--{/if}-->

        <div class="boxtwo1">
            <div class="boxtop blue"><span><a href="{url category/list/4}">更多&gt;&gt;</a></span>赏金求答案</div>
            <div class="boxtwo3down blue">
                <ul>
                	<!--{eval $rewardlist=$this->fromcache('rewardlist');}-->
                    <!--{loop $rewardlist $question}-->
                    <li>
                        <span>[<a href="{url category/view/$question['cid']}">{$question['category_name']}</a>]</span>
                        <div class="boxtwo3downleft">{$question['price']}</div>
                        <a href="{$question['url']}" title="{$question['title']}" target="_blank">{eval echo cutstr($question['title'],49);}</a>
                    </li>
                    <!--{/loop}-->
                </ul>
            </div>
        </div>
    </div>

    <div class="boxthree">
        <div class="boxthree2">
            <div class="boxtop">
                <div id="linkMore" style="font-size: 12px; font-weight: normal;" class="boxtop1_more">
                    <a target="_blank" href="{URL note/list}">更多&gt;&gt;</a></div>公告
            </div>
            <div id="searchresult" class="boxthree2down">
                <ul class="blue">
                	<!--{eval $notelist=$this->fromcache('notelist');}-->
                    <!--{loop $notelist $note}-->
                    <li>·<a {if $note['url']}href="{$note['url']}" target="_blank" {else} href="{url note/view/$note['id']}" {/if} ><strong>{$note['title']}</strong></a></li>
                    <!--{/loop}-->
                </ul>
            </div>
        </div>
        <div class="blank10">
        </div>

        <!--广告位3-->
        <!--{if (isset($adlist['index']['right1']) && trim($adlist['index']['right1']))}-->
        {$adlist['index']['right1']}
        <div class="blank10"></div>
        <!--{/if}-->

        <div class="boxthree2">
            <div class="boxtop">问答名人堂</div>
            <div class="boxthree3down">
            	<!--{eval $famouslist=$this->fromcache('famouslist');}-->
                <!--{loop $famouslist $famous}-->
                <div style class="boxthree2down0">
                    <div class="boxthree3down0right">
                        <h3 class="blue"><a href="{url user/space/$famous['uid']}" target="_blank">{$famous['username']}</a></h3>
			精彩解答：<span class="blake1"><a href="{url question/view/$famous['qid']}" target="_blank">{$famous['title']}</a></span>
                    </div>
                    <a href="{url user/space/$famous['uid']}"><img src="{$famous['avatar']}" width="51" height="51"></a>
                </div>
                <!--{/loop}-->
                <br /><br />
            </div>
        </div>
        <div class="blank10">
        </div>
        <div class="boxthree2">
            <div class="boxtop">
                <div id="linkMore" style="font-size: 12px; font-weight: normal;" class="boxtop1_more">
                    <a target="_blank" href="{url expert}">更多&gt;&gt;</a></div>推荐专家
            </div>
            <div class="boxthree2down">
            	<!--{eval $expertlist=$this->fromcache('expertlist');}-->
                <!--{loop $expertlist $expert}-->
                <div style class="boxthree2down0">
                    <div class="boxthree32own0right">
                        <h3 class="blue"><a href="{url user/space/$expert['uid']}" target="_blank">{$expert['username']}</a></h3>
                        擅长分类：<span class="blake1">{$expert['categoryname']}</span><br />
                        积分：<span class="blake1">{$expert['credit1']}</span>&nbsp;&nbsp;回答数：<span class="blake1">{$expert['answers']}</span>
                        <br />
                    </div>
                    <a href="{url user/space/$expert['uid']}"><img src="{$expert['avatar']}" width="51" height="51"></a>
                </div>
                <!--{/loop}-->
            </div>
        </div>
        <div class="blank10"></div>

        <!--广告位4-->
        <!--{if (isset($adlist['index']['right2']) && trim($adlist['index']['right2']))}-->
        {$adlist['index']['right2']}
        <div class="blank10"></div>
        <!--{/if}-->

        <div class="boxthree4">
            <div class="boxtop2">
                <div class="boxtop2B" id="zbf021" onmouseover="show_tabz(21)">达人飙升榜</div>
                <div class="boxtop2x"></div>
                <div class="boxtop2A" id="zbf022" onmouseover="show_tabz(22)">总积分榜</div>
            </div>
            <div style="display: none;" id="zbli021">
                <table class="blue" border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td width="11%"></td>
                        <td width="68%"><strong>用户名</strong></td>
                        <td style="text-align: right;" width="21%"><strong>得分</strong></td>
                    </tr>
                    <!--{eval $weekuserlist=$this->fromcache('weekuserlist');}-->
                    <!--{loop $weekuserlist $index $weekuser}-->
					<!--{eval ++$index;}-->
                    <tr>
                        <td><div class="boxthree4paihang1">{$index}</div></td>
                        <td><a  href="{url user/space/$weekuser['uid']}"  target="_blank">{$weekuser['username']}</a><a></a></td>
                        <td class="b888" style="text-align: right;">{$weekuser['credit1']}</td>
                    </tr>
                    <!--{/loop}-->
                </table>
                <div style="text-align: right; padding-right: 5px; line-height: 22px;"><a target="_blank" href="{url user/scorelist/1}">更多&gt;&gt;</a></div>
            </div>
            <div id="zbli022" style="display: block;">
                <table class="blue" border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td width="11%">　</td>
                        <td width="68%"><strong>用户名</strong></td>
                        <td style="text-align: right;" width="21%"><strong>得分</strong></td>
                    </tr>
                    <!--{eval $alluserlist=$this->fromcache('alluserlist');}-->
                    <!--{loop $alluserlist $index $alluser}-->
					<!--{eval ++$index;}-->
                    <tr>
                        <td><div class="boxthree4paihang1">{$index}</div></td>
                        <td><a  href="{url user/space/$alluser['uid']}"  target="_blank">{$alluser['username']}</a><a></a></td>
                        <td class="b888" style="text-align: right;">{$alluser['credit1']}</td>
                    </tr>
                    <!--{/loop}-->
                </table>
                <div style="text-align: right; padding-right: 5px; line-height: 22px;"><a target="_blank" href="{url user/scorelist/0}">更多&gt;&gt;</a></div>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<script type="text/javascript">
 //精彩推荐
 $("li[id^='recommend']").bind("mouseover", function(){
 	var id=$(this).attr('id') ;
	$("a[id^='recommend']").hide();
 	$('#'+id+'img').show();
});

</script>

{template footer}